﻿using System;
using System.Threading.Tasks; 
using Hang.Blog.DomainPlus.EntityPlus; 
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Hang.Blog.Inter {
    public interface ICategoryAppService : IApplicationService {

        Task AddOrUpdateCategory(CategoryDto dto);


        Task<PagedResultDto<CategoryDto>> GetPage(CategoryPageDto input);
    }

    public class CategoryDto : EntityDto<Guid?> {
        public string CategoryName { get; set; }

    }
    


    public class CategoryPageDto : IPage {
        public int Page { get; set; }
        public int PageSize { get; set; }
        
        public string CategoryName { get; set; }
    }


}
